<template>
	<view class="page">
		<image class="bg" src="../../static/img/bg_common.jpg"></image>
		<view class="wrap">
			
			<view class='info'>
				<view class="line">
					<view class="tt">联系人</view>
					<input class="input" placeholder="规划师怎么称呼您" />
				</view>
				<view class="line">
					<view class="tt">联系人</view>
					<view class="pre">+86</view>
					<image src="../../static/img/arr_down.png" class="arr_down"></image>
					<input class="input" placeholder="方便规划师与您联络" />
				</view>
				<view class="line">
					<view class="tt">学历</view>
					<input class="input" placeholder="填当前最高学历(含在读)" />
				</view>
				<view class="line">
					<view class="tt">专业</view>
					<input class="input" placeholder="填当前专业" />
				</view>
				<view class="line">
					<view class="tt">联系邮箱</view>
					<input class="input" placeholder="选填,方便接受规划方案" />
				</view>
				<view class="line">
					<view class="tt">微信号</view>
					<input class="input" placeholder="选填,方便规划师与您联络" />
				</view>
			</view>
			
			<view class="info">
				<view class="title">培训方式</view>
				<view class="flex_wrap">
					<view @tap="chooseType(index)" class="type_item" v-for="(item,index) in typeList" :key="index">
						<view class="txt">{{item}}</view>
						<image v-show="index==selectType" src="../../static/img/flag.png" class="flag"></image>
					</view>
				</view>
			</view>
			
			<view class="info">
				<view class="title">培训方式</view>
				<textarea :value="remark" @input="inputRemark" maxlength="1000" class="ta" placeholder-style="line-height:40rpx;font-size:24rpx;color:#aaaaaa;" 
				placeholder="选填,您可以再次输入个性化成长需求,如培训时长培训主要目的,当前考虑接受培训的原因,当期所在城市是否可以先上培训等,以便规划师更好的赋能您的的成长"></textarea>
				<view class="count">
					<text>{{remark.length}}/1000</text>
				</view>
			</view>
			
			<view class="note">规划师接受您的归化申请后，会通过短信告知您联系电话（全部以<text>1811627</text>开头），并将预计在一个工作日内联系您沟通</view>
			<view class="btn_plan" @tap="doApply">马上为我归化</view>
		</view>
	</view>
</template>

<script>
	
	
	export default {
		data(){
			return{
				typeList:["短期培训","定期培训","线上培训","脱产培训"],
				selectType:1,
				remark:"选填,您可以再次输入个性化成长需求,如培训时长培训主要目的,当前考虑接受培训的原因,当期所在城市是否可以先上培训等,以便规划师更好的赋能您的的成长"
			}
		},
		methods: {
			chooseType(index) {
				this.selectType = index;
			},
			inputRemark(e){
				this.remark = e.detail.value;
			},
			doApply(){
				console.log("规划")
				
			}
		},
		
	}
</script>

<style scoped lang="less">
	.page{
		width: 100%;
		min-height: 100%;
		  margin: 0;
		  padding: 0;
		  position: relative;
	}
	.bg{
		z-index: -1;
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0;left: 0;right: 0;
	}
	.wrap{
		width: 100%;
		z-index: 10;
		display: flex;
		flex-direction: column;
		align-items: center;
		.info{
			background: #FFFFFF;
			border-radius: 12rpx;
			width: 670rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			margin-top: 40rpx;
			.line{
				width: 602rpx;
				height: 80rpx;
				border-bottom: 1rpx solid #c3baa5;
				display: flex;
				flex-direction: row;
				align-items: center;
				.tt{
					font-size: 26rpx;
					color: #333333;
					width: 165rpx;
				}
				.pre{
					font-size: 30rpx;
					line-height: 30rpx;
					margin-right: 11rpx;
				}
				.arr_down{
					width: 14rpx;
					height: 9rpx;
					margin-right: 40rpx;
				}
				.input{
					flex: 1;
					font-size: 30rpx;
					color: #7a6b4b;
				}
			}
			.line:last-child{
				border-bottom: none;
			}
			
			.title{
				width: 602rpx;
				text-align: left;
				font-size: 34rpx;
				font-weight: bold;
				color: #6b5e40;
				margin-top: 40rpx;
			}
			.flex_wrap{
				margin-top: 6rpx;
				margin-bottom: 30rpx;
				width: 602rpx;
				display: flex;
				flex-wrap: wrap;
				.type_item{
					width: 140rpx;
					height: 68rpx;
					line-height: 68rpx;
					margin: 24rpx 30rpx 0 0;
					border-radius: 8rpx;
					border: 2rpx solid #987d51;
					font-size: 26rpx;
					color: #987d51;
					text-align: center;
					position: relative;
					.flag{
						position: absolute;
						bottom: 0;right: 0;
						width: 33rpx;height: 33rpx;
					}
				}
			}
			.ta{
				width: 602rpx;
				height: 140rpx;
				line-height: 40rpx;
				font-size: 24rpx;
				color: #333333;
				margin-top: 40rpx;
			}
			.count{
				width: 602rpx;
				margin-top: 10rpx;
				margin-bottom: 30rpx;
				font-size: 22rpx;
				color: #a28b68;
				text{
					float: right;
				}
			}
		}
		.note{
			width: 670rpx;
			margin-top: 20rpx;
			font-size: 24rpx;
			color: #e1d8c4;
			font-weight: bold;
			text{
				color: white;
			}
		}
		.btn_plan{
			margin: 34rpx 0;
			width: 670rpx;
			background: black;
			border-radius: 10rpx;
			height: 72rpx;
			line-height: 72rpx;
			font-size: 28rpx;
			font-weight: bold;
			color: #daceb1;
			text-align: center;
		}
	}
</style>
